﻿@using WebEntities
@using WebsiteUI.Extensions;

@{
    ViewBag.Title = "Guangzhou HUAQIAO Sugar Factory";
    Layout = "~/Areas/EN/Views/Shared/_EnDefLayout.cshtml";
}

@section scripts {
    <script src="/Scripts/qrcode.js" type="text/javascript"></script>
}

<div id="adpanel">
    @{
        List<WI_IndexADImg> imgList = ViewBag.ADImgList as List<WI_IndexADImg>;
        int ncount=0;
        foreach (WI_IndexADImg img in imgList)
        {
            @Html.Hidden("index_adimg", img.ImgUrl, new { id = "adimg" + ncount, alt=img.ImgUrl })
            ncount++;
        }
    }
    <div id="adimgs"></div>
    <div style="position:absolute; top:0px; left:0px; overflow:hidden; width: 980px; height:280px;"><img src="/Images/index02.png" alt="" /></div>
    <div class="function1">
        <div class="func_content">
            <div class="adimg1"><a href="#" target="_blank"><img src="" alt="" /></a></div>
            <h3><a href="#" target="_blank">Recommend Product</a></h3>
            <div class="admore1"><a href="#" target="_blank"><img src="/Images/more2.jpg" alt="more" /></a></div>
            
        </div>
    </div>
</div>
<div id="qrcode_panel">
    <div id="qrcodebar">
        <img src="/images/qrcode.jpg" alt="QR Code" />
    </div>
</div>
<div class="index_panel">
    <table class="index_tab1">
        <tr>
            <td style="width:270px">
                <div class="search_panel">
                    @using (Html.BeginForm("search", "products", new { area = "en" }, FormMethod.Post, new { name = "form1", id = "form1" }))
                    {
                        <p>&nbsp;</p>
                        <p>
                            <select name="seatype">
                                <option value="prods">Products</option>
                            </select>
                        </p>
                        <p>@Html.TextBox("seakey", null, new { @class = "seachtext" })</p>
                        <p><img src="/Images/searchbtn.jpg" alt="" id="searchbtn" /></p>
                    }
                </div>
            </td>
            <td style="width:500px">
                <div class="newprod_panel">
                    <div class="newprod_bar">
                        <span class="lpan">Recommend Products</span>
                        <span class="rpan">
                            <a href="#"><img src="/Images/num1a.jpg" alt="" /></a>
                            <a href="#"><img src="/Images/num2.jpg" alt="" /></a>
                            <a href="#"><img src="/Images/num3.jpg" alt="" /></a>
                        </span>
                    </div>
                    <div class="cls"></div>
                    <div class="newprod_info">
                        <ul style="height:170px">
                        @{
                            List<PP_RecommendProduct> rprodList = ViewBag.RecomProductList as List<PP_RecommendProduct>;
                            foreach (var rprod in rprodList)
                            {
                                <li class="idxprodimg">
                                    <div><a href="/products/details/@rprod.ProductID" target="_blank"><img src="@rprod.IndexCover" alt="" /></a></div>
                                    <h3><a href="/products/details/@rprod.ProductID" target="_blank">@rprod.PP_Product.ProductName</a></h3>
                                </li>
                            }
                        }
                            <li class="cls"></li>
                        </ul>
                    </div>
                </div>
            </td>
            <td style="width:200px">
                <div class="office_panel">
                    <div><img src="/Images/oa.jpg" alt="Office Automation System" /></div>
                    <div><img src="/Images/biz.jpg" alt="Business Cooperation" /></div>
                    <div><a href="http://list.tmall.com/search_product.htm?spm=1.1.0.0.f0lCWA&cat=50510022&brand=3272524&style=g&search_condition=23&user_id=1129326215&active=1&industryCatId=50510022&is=brand" target="_blank"><img src="/Images/tmall.png" alt="Tmall.com-Guangzhou HUAQIAO Sugar Factory" /></a></div>
                    <div><a href="http://shop108128972.taobao.com/" target="_blank"><img src="/Images/taobao.png" alt="TaoBao.com-Guangzhou HUAQIAO Sugar Factory" /></a></div>
                </div>
            </td>
        </tr>
    </table>
</div>





